package com.qf.exception;

import com.qf.enums.ExceptionEnums;
import lombok.Getter;

@Getter
public class ExamException extends RuntimeException {

    private Integer code;
    public ExamException(Integer code, String message) {
        super(message);
        this.code = code;
    }
    public ExamException(ExceptionEnums exceptionEnums) {
        super(exceptionEnums.getMsg());
        this.code = exceptionEnums.getCode();
    }
}
